(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/work/house/list" ], {
    "0627": function(t, e, s) {
        (function(t) {
            s("767a"), i(s("66fd"));
            var e = i(s("08c6"));
            function i(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = s, t(e.default);
        }).call(this, s("543d").createPage);
    },
    "08c6": function(t, e, i) {
        i.r(e);
        var s, o = i("35af"), n = i("5da2");
        for (s in n) "default" !== s && function(t) {
            i.d(e, t, function() {
                return n[t];
            });
        }(s);
        i("8e94");
        var a = i("f0c5"), o = Object(a.a)(n.default, o.b, o.c, !1, null, null, null, !1, o.a, void 0);
        e.default = o.exports;
    },
    "35af": function(t, e, i) {
        i.d(e, "b", function() {
            return s;
        }), i.d(e, "c", function() {
            return o;
        }), i.d(e, "a", function() {});
        var s = function() {
            this.$createElement;
            this._self._c;
        }, o = [];
    },
    "5da2": function(t, e, i) {
        i.r(e);
        var s, o = i("d71a"), n = i.n(o);
        for (s in o) "default" !== s && function(t) {
            i.d(e, t, function() {
                return o[t];
            });
        }(s);
        e.default = n.a;
    },
    "8e94": function(t, e, i) {
        var s = i("ee92");
        i.n(s).a;
    },
    d71a: function(t, i, s) {
        (function(o) {
            function e(e, t) {
                var i, s = Object.keys(e);
                return Object.getOwnPropertySymbols && (i = Object.getOwnPropertySymbols(e), t && (i = i.filter(function(t) {
                    return Object.getOwnPropertyDescriptor(e, t).enumerable;
                })), s.push.apply(s, i)), s;
            }
            Object.defineProperty(i, "__esModule", {
                value: !0
            });
            var t = {
                components: {
                  houseCity: function() {
                      console.log('come');
                        s.e("/components/house-city/house-city").then(function() {
                            return resolve(s("a643"));
                        }.bind(null, s)).catch(s.oe);
                    },
                  //设置属性处理
                  houseAttribute: function() {
                    s.e("pages/work/components/house-attribute").then(function() {
                        return resolve(s("0a5d"));
                    }.bind(null, s)).catch(s.oe);
                  },
                },
                data: function() {
                    return {
                        /*新增下拉框处理 */
                        shows: false, //控制下拉列表的显示隐藏，false隐藏、true显示
                        selectDatas: ['消费账户', '平台返利账户', '微信钱包'], //下拉列表的数据
                     
                        /*新增下拉框处理 */
                        list: [],
                        isLoading: 1,
                        key: "",
                        select_id: -1,
                        select_index: -1,
                        select_index2: -1,
                        select_index3: -1,
                        select_index4: -1,
                        select_item: {},
                        itemIndex: 0,
                        selectshow: !1,
                        pa: {
                            head_title_1: "",
                            head_title_2: "",
                            head_title_3: "",
                            head_title_4: "",
                            community_ids: [],
                            type: "",
                            let_way: 0,
                            status: 0
                        },
                        pa2: {
                            head_title_1: "",
                            head_title_2: "",
                            head_title_3: "",
                            head_title_4: "",
                            type: "",
                            community_ids: [],
                            let_way: 0,
                            status: 0
                        },
                        type_list: [ {
                            type: "",
                            name: "全部"
                        }, {
                            type: "kong",
                            name: "空房可租"
                        }, {
                            type: "kuai",
                            name: "合同快到期"
                        }, {
                            type: "end",
                            name: "合同已到期"
                        }, {
                            type: "qian",
                            name: "合同欠款"
                        }, {
                            type: "shou",
                            name: "3天待收款"
                        } ],
                        community_list: [],
                        let_way_list: [],
                        status_list: [],
                        loginUser:[],
                        /*新增处理 */
                        house: {
                          id: 0,
                          let_way: 1,
                          name: "",
                          tel: "",
                          dong: "",
                          tit: "",
                          dy: "",
                          doorplate: "",
                          mian_ji: "",
                          room_type: "",
                          rent: "",
                          ya_month: "",
                          fu_month: "",
                          video: "",
                          cover: [],
                          kt_imgs: [],
                          fj_imgs: [],
                          cf_imgs: [],
                          wsj_imgs: [],
                          hx_imgs: [],
                          xq_imgs: [],
                          guarantee: "",
                          content: "",
                          name2: "",
                          tel2: "",
                          remark: "",
                          tag_ids: "",
                          tag_names: "",
                          furnish_ids: "",
                          furnish_names: "",
                          stw_index: [ 0, 1, 1 ],
                          stw_names: "",
                          attribute_index: [ 0, 0, 0 ],
                          attribute_names: "",
                          wt_type_index: 0,
                          //新增处理

                          // name: 'Ikun',
                          // age: 24,
                          type:'全部',
                          decorate:'全部',
                          direction:'全部',

                      },
                      name:'liudehua',
                      allArray:[],
                      multiArray:[],
                      nameArray:'',
                      city_id:0,
                      area_id:0,
                      


                      //新增处理
                      is_all:1,
                      id:0,
                      status:0,
                      self_style:0,
                      multiArray: [
                        ['无脊柱动物', '脊柱动物'],
                        ['全部', '扁性动物', '线形动物', '环节动物', '软体动物', '节肢动物'],
                        // ['全部']
                    ], // 展示的数据所存放的数据
                    allArray: [
                        {
                            name: '无脊柱动物',
                            id: 100,
                            children: [{
                                    name: '扁性动物',
                                    id: 101,
                                    children: [{
                                            name: '猪肉绦虫',
                                            id: 1001
                                        },
                                        {
                                            name: '吸血虫',
                                            id: 1002
                                        },
                                    ]
                                },
                                {
                                    name: '线形动物',
                                    id: 102,
                                    children: [{
                                        name: '蛔虫',
                                        id: 1005
                                    }]
                                },
                                {
                                    name: '环节动物',
                                    id: 103,
                                    children: [{
                                            name: '蚂蚁',
                                            id: 1003
                                        },
                                        {
                                            name: '蚂蟥',
                                            id: 1004
                                        },
                                    ]
                                },
                                {
                                    name: '软体动物',
                                    id: 104,
                                    children: [{
                                            name: '河蚌',
                                            id: 1006
                                        },
                                        {
                                            name: '蜗牛',
                                            id: 1007
                                        },
                                        {
                                            name: '蛞蝓',
                                            id: 1008
                                        }
                                    ]
                                },
                                {
                                    name: '节肢动物',
                                    id: 104,
                                    children: [{
                                            name: '昆虫',
                                            id: 1009
                                        },
                                        {
                                            name: '甲壳动物',
                                            id: 1010
                                        },
                                        {
                                            name: '蛛形动物',
                                            id: 1011
                                        },
                                        {
                                            name: '多足动物',
                                            id: 1012
                                        }
                                    ]
                                },
              
                            ]
                        },
                        {
                            name: '脊柱动物',
                            id: 10,
                            children: [{
                                    name: '鱼',
                                    id: 11,
                                    children: [{
                                            name: '鲫鱼',
                                            id: 14,
                                        },
                                        {
                                            name: '带鱼',
                                            id: 4444444,
                                        },
                                    ]
                                },
                                {
                                    name: '两栖动物',
                                    id: 12,
                                    children: [{
                                            name: '青蛙',
                                            id: 16,
                                        },
                                        {
                                            name: '娃娃鱼',
                                            id: 17,
                                        },
                                    ]
                                },
                                {
                                    name: '爬行动物',
                                    id: 13,
                                    children: [{
                                            name: '蜥蜴',
                                            id: 18,
                                        },
                                        {
                                            name: '龟',
                                            id: 19,
                                        },
                                        {
                                            name: '壁虎',
                                            id: 20,
                                        },
                                    ]
                                },
                            ]
                        }
                    ], // 模拟后台返回的数据
                    // multiIndex: [0,0,0], // 选中数据的下标
                    multiIndex: [0,0], // 选中数据的下标
                    deptId: 11, // 默认选中的数据,根据数据拿到multiArray，multiIndex来做回显
                    };
                },
                computed: function(s) {
                    for (var t = 1; t < arguments.length; t++) {
                        var o = null != arguments[t] ? arguments[t] : {};
                        t % 2 ? e(Object(o), !0).forEach(function(t) {
                            var e, i;
                            e = s, t = o[i = t], i in e ? Object.defineProperty(e, i, {
                                value: t,
                                enumerable: !0,
                                configurable: !0,
                                writable: !0
                            }) : e[i] = t;
                        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(s, Object.getOwnPropertyDescriptors(o)) : e(Object(o)).forEach(function(t) {
                            Object.defineProperty(s, t, Object.getOwnPropertyDescriptor(o, t));
                        });
                    }
                    return s;
                }({}, (i.default = void 0, s("26cb").mapState)({
                    isLogin: function(t) {
                        return t.user.isLogin;
                    },
                    basicSet: function(t) {
                        return t.init.basicSet;
                    }
                })),
                onLoad: function(options) {
                 
                  if(options){
                      if(options.self_style==1){
                        this.setData({
                          self_style:options.self_style
                        })
                      }
                      // console.log('options',options);
                      if(options.is_all==undefined){
                        options.is_all=1;
                      }
                      console.log('options.is_all',options.is_all);
                      if(options.is_all>=0){
                        console.log('options.is_all',options.is_all);
                        this.is_all=options.is_all;
                        // this.setData({
                        //   is_all:options.is_all
                        // })
                        console.log('yes');
                        console.log('options.is_all',options.is_all);
                        if(options.is_all==0){
                          wx.setNavigationBarTitle({
                            title: '我的房源',
                          })
                        }else{
                          wx.setNavigationBarTitle({
                            title: '所有房源【灰色为可出租】',
                          })
                        }
                      }
                  }
                  //  var t = this.$Route.query;
                  //   t.id && (this.house.id = t.id), this.init();
                    // //属性佣金init的处理
                        this.init_edit(); 
                       
                  
                },
                onShow: function() {
                    //获取用户信息
                    this.myInit();
                    // console.log('yes'); 
                    this.init();
                    this.onHuxing();
                },
                onReady: function() {}, 
                 
                 bindMultiPickerChange:function(event){
                    console.log('event',event);
                    this.setData({nameArray:1});
                    // this.name='yes';
                  },
                  onLike(){
                    console.log('onLike');
                  },
                  go:function(){
                    console.log('go');
                },
                 gocome:function(){
                    console.log('gocome');
                  },
                  bindMultiPickerChange:function(){
                    console.log('yesff');
                },
                methods: {
                  /*新增下拉框处理 */
                  // 点击下拉显示框
                  selectTaps() {
                    console.log('selectTaps');
                    this.setData({
                      shows: !this.data.shows,
                    });
                  },
                  // 点击下拉列表
                  optionTaps(e) {
                    console.log('optionTaps');
                    let Indexs = e.currentTarget.dataset.index; //获取点击的下拉列表的下标
                    console.log(Indexs)
                    this.setData({
                      indexs: Indexs,
                      shows: !this.shows
                    });
                  },
                  /*新增下拉框处理*/
                  goMap:function(e){
                    var dataset=e.currentTarget.dataset;
                    // wx.navigateTo({
                    //   url: '/pages/house/map-search?is_load=1&name='+dataset.name+'&communityId='+dataset.id
                    // })
                    wx.navigateTo({
                      url: '/pages/house/near?lng='+dataset.lng+'&lat='+dataset.lat+"&key=交通"
                    })

                  },
                  toCall:function(e){    
                    var tel=e.currentTarget.dataset.tel;
                    // console.log('e的值',e)
                    wx.makePhoneCall({
                      phoneNumber: tel,
                      success: function () {
                        console.log('成功拨打电话')
                      }
                    })
                  },

                  bindMultiPickerChange:function(){
                    console.log('yesff');
                },
                  goinfo:function(){
                    console.log('goinfo');
                },
                  gocome:function(){
                    console.log('gocome');
                  },
                  attributeConfirm: function(t) {
                      console.info(t), this.house.decorate = t.decorate, this.house.direction = t.direction, 
                    this.house.type = t.type, this.house.attribute_index = t.index, this.house.attribute_names = t.names;
                    //调用房源处理
                    this.getHouses();
                },
                getHouses: function() {
                      var i = this;
                      console.log('yes');
                      i.$api("work.house_list", {
                          let_way: i.pa.let_way,
                          status: i.pa.status,
                          type: i.pa.type,
                          key: i.key,
                          city_id:i.city_id,
                          area_id:i.area_id, 
                          //属性/佣金
                          house_type:i.house.type, 
                          decorate:i.house.decorate, 
                          direction:i.house.direction, 
                          is_all:i.is_all,
                          is_group_title:1,
                      }).then(function(t) {
                          var e;
                          0 == t.errno ? (e = t.data.list, i.list = e) : i.$tools.toast(t.msg);
                      });
                  },
                  like:function(){
                    console.log('yes');
                  },
                  go:function(event){
                      console.log('event',event);
                      console.log('go_method');
                      var info=event.detail.data;
                      // this.setData({
                      //   area_id:info.area_id,
                      //   city_id:info.area_id,
                      // })
                      this.area_id=info.area_id;
                      this.city_id=info.city_id;
                      this.getHouses();
                  },
                  // // 选中后触发
                  // bindMultiPickerChange: function (e) {
                  //   console.log('picker发送选择改变，携带值为', e.detail)
                  //   this.setData({ 
                  //       multiIndex: e.detail.value
                  //   })
                  // },
                  //  // 列滚动后触发（通过接口数据赋值）
                  //     bindMultiPickerColumnChange: function (e) {
                  //       console.log('修改的列为', e.detail.column, '，值为', e.detail);
                  //       var data = {
                  //           multiArray: this.data.multiArray,
                  //           multiIndex: this.data.multiIndex
                  //       };
                  //       data.multiIndex[e.detail.column] = e.detail.value;
                  //       switch (e.detail.column) {
                  //           // 滚动第一列
                  //           case 0:
                  //               data.multiArray[1] = ['请选择'];
                  //               data.multiArray[2] = ['请选择'];
                  //               this.data.allArray[data.multiIndex[0]].children.forEach(item=>{
                  //                   data.multiArray[1].push(item.name)
                  //               })
                  //               // 第二列，第三列回到第一行
                  //               data.multiIndex[1] = 0;
                  //               data.multiIndex[2] = 0;
                  //               break;
                  //           // 滚动第二列
                  //           case 1:
                  //               console.log(data.multiIndex[0], data.multiIndex[1]);
                  //               if(data.multiIndex[1] == 0){
                  //                   data.multiArray[2] = ['请选择'];
                  //               }else{
                  //                   data.multiArray[2] = ['请选择'];
                  //                   this.data.allArray[data.multiIndex[0]].children[data.multiIndex[1]-1].children.forEach(item=>{
                  //                       data.multiArray[2].push(item.name)
                  //                   })
                  //                   console.log(data.multiArray[2]);
                  //               }
                  //               data.multiIndex[2] = 0;
                  //               console.log(data.multiIndex);

                  //               break;
                  //       }
                  //       const arr = JSON.parse(JSON.stringify(data.multiArray))
                  //       this.setData({
                  //           multiArray: arr,
                  //           multiIndex: data.multiIndex
                  //       });
                  //       console.log(this.data.multiArray);
                  //       this.getDataId(data.multiIndex)
                  //   },
                  //   // 拿到选中数据的id，根据选中数据的下标来获取数据详情
                  //   getDataId(data) {
                  //       console.log('getDataId');
                  //       var query = {}
                  //       if (data[1] == 0) {
                  //           query = this.data.allArray[data[0]]
                  //       }
                  //       if (data[2] == 0 && data[1] != 0) {
                  //           query = this.data.allArray[data[0]].children[data[1] - 1]
                  //       }
                  //       if (data[2] != 0 && data[1] != 0) {
                  //           query = this.data.allArray[data[0]].children[data[1] - 1].children[data[2] - 1]
                  //       }
                  //       console.log('query', query);
                  //   },
                  //   onHuxing(){
                  //     console.log('yes');
                  //     // 假如有数据回显，进入页面，拿到到了id与name，来推断multiIndex，脊柱动物， 鱼， 带鱼，选中了带鱼
                  //     let multiIndex = [0,0,0]
                  //     this.data.allArray.forEach((item, index) => {
                  //         // 如果选中的是第一列的数据
                  //         if (item.id == this.data.deptId) {
                  //             multiIndex = [index, 0, 0]
                  //             // this.setData({
                  //             //     multiIndex: [index, 0, 0],
                  //             //     multiArray: [['无脊柱动物', '脊柱动物'], ['请选择'], ['请选择']]
                  //             // })
                  //             return
                  //         }
                  //         // 如果选中的不是第一列的数据
                  //         if (Array.isArray(item.children) && item.children.length) {
                  //             item.children.forEach((ele, inx) => {
                  //                 // 如果选中的是第二列的数据
                  //                 if (ele.id == this.data.deptId) {
                  //                     multiIndex = [index, inx + 1, 0]
                  //                     // this.setData({
                  //                     //     // inx + 1的目的是因为我手动添加了一行，请选择这一行，所以实际下标应该+ 1
                  //                     //     multiIndex: [index, inx + 1, 0],
                  //                     // })
                  //                     return
                  //                 }
                  //                 // 如果选中的不是第二列的数据
                  //                 if (Array.isArray(ele.children) && ele.children.length) {
                  //                     ele.children.forEach((element, ind) => {
                  //                         // 如果选中的是第三列的数据
                  //                         if (element.id == this.data.deptId) {
                  //                             multiIndex = [index, inx + 1, ind + 1]
                  //                             // this.setData({
                  //                             //     // inx + 1， ind + 1的目的是因为我手动添加了一行，请选择这一行，所以实际下标应该+ 1
                  //                             //     multiIndex: [index, inx + 1, ind + 1],
                  //                             // })
                  //                             return
                  //                         }
    
                  //                     })
                  //                 }
                  //             })
                  //         }
                  //     })
                  //     // 在上面已经拿到了需要的下标，此时还需要拿到需要的是数据multiArray
                  //     console.log('下标',multiIndex);
                  //     // 此案例第一列固定，如果第一列也需要动态渲染，请根据接口来进行操作
                  //     let  multiArray =  [['无脊柱动物', '脊柱动物'], ['请选择'],['请选择']]
                  //     this.data.allArray[multiIndex[0]].children.forEach(item=>{
                  //       multiArray[1].push(item.name)
                  //     })
                  //     if(multiIndex[1] != 0){
                  //         this.data.allArray[multiIndex[0]].children[multiIndex[1]-1].children.forEach(ele=>{
                  //             multiArray[2].push(ele.name)
                  //         })
                  //     }
                  //     this.setData({
                  //         multiArray: multiArray,
                  //         multiIndex: multiIndex
                  //     })
                  //     console.log(multiArray, multiIndex);
                  // },
                    
                  cityConfirm: function(t) {
                      console.info(t), this.house.city_id = t.city_id, 
                      // this.house.ting = t.ting, this.house.wei = t.wei, 
                      this.house.stw_index = t.index, this.house.stw_names = t.names;
                  },
                  openHouseCity: function() {
                      // console.log('yes');
                      // this.$refs.houseCity.show(this.house.stw_index);
                  },
                   //房间信息处理
                    init: function() {
                      console.log('init处理');
                      var i = this;
                      i.$api("lethouse.pubInit", {
                          id: i.house.id,
                          is_shai:1
                      }).then(function(t) {
                          var e;
                          0 === t.errno ? 0 == t.data.code && (i.tagList = t.data.tagList, i.furnishList = t.data.furnishList, 
                          i.wt_type_list = t.data.wt_type_list, 
                          i.$store.commit("shiList", t.data.shiList), 
                          console.log('t.data.cityList',t.data.cityList),
                          i.cityList=t.data.cityList,
                          i.$store.commit("cityList", t.data.cityList), 
                          // i.$store.commit("tingList", t.data.tingList), i.$store.commit("weiList", t.data.weiList), 
                          i.$store.commit("typeList", t.data.typeList), i.$store.commit("decorateList", t.data.decorateList), 
                          i.$store.commit("directionList", t.data.directionList), 0 < i.house.id) && (i.house = t.data.house, 
                          (e = t.data.community) && (e = {
                              id: e.id,
                              name: e.name
                          }, i.$store.commit("pubCommunity", e))) : i.$tools.toast(t.msg);
                      });
                  }, 
                  openHouseAttribute: function() {
                      console.log('yes');
                        this.$refs.houseAttribute.show(this.house.attribute_index);
                    },
                  //当前用户信息
                  myInit: function() {
                    var e = this;
                      this.$api("my.myInit", {}).then(function(n) {
                          var t;
                          console.log('n.data.basicSet',n.data.user);
                          e.loginUser=n.data.user;
                          // e.$store.commit("loginUser", n.data.user)
                          // 0 == n.errno ? 0 == n.data.code ? (t = n.data.basicSet, e.my_items = t.my_items, 
                          //   // console.log('t的值',t);
                          // (t = n.data.user) && (1 == t.is_black ? o.showModal({
                          //     title: "警告",
                          //     content: "你已经被平台拉黑,限制使用",
                          //     showCancel: !1,
                          //     success: function() {
                          //         e.$store.commit("loginOut", !0);
                          //     }
                          // }) : e.$store.commit("loginUser", t))) : e.$tools.toast(n.data.msg) : e.$tools.toast(n.msg);
                      });
                    },
                    init: function() {
                        this.getHouses(),
                         this.house_list_init();
                    },
                    //init_edit处理
                    init_edit:function(){
                      var i = this;
                      i.$api("lethouse.pubInit", {
                          id: i.house.id,
                          is_shai:1
                      }).then(function(t) {
                          console.log('t的值',t);
                          var e;
                          0 === t.errno ? 0 == t.data.code && (i.tagList = t.data.tagList, i.furnishList = t.data.furnishList, 
                          i.wt_type_list = t.data.wt_type_list,
                          i.$store.commit("shiList", t.data.shiList), 
                          i.allArray=t.data.cityList,
                          i.multiArray=t.data.cityName,
                          // i.$store.commit("allArray", t.data.cityList), 
                          // i.$store.commit("multiArray", t.data.cityName), 
                          console.log('t.data.cityList',t.data.cityList),
                          i.cityList=t.data.cityList,
                          // i.$store.commit("tingList", t.data.tingList), i.$store.commit("weiList", t.data.weiList), 
                          i.$store.commit("typeList", t.data.typeList), i.$store.commit("decorateList", t.data.decorateList), 
                          i.$store.commit("directionList", t.data.directionList), 0 < i.house.id) && (i.house = t.data.house, 
                          (e = t.data.community) && (e = {
                              id: e.id,
                              name: e.name
                          }, i.$store.commit("pubCommunity", e))) : i.$tools.toast(t.msg);
                      });
                    },
                    house_list_init: function() {
                        var e = this;
                        console.log('okok');
                        e.$api("work.house_list_init", {}).then(function(t) {
                            0 == t.errno ? (e.let_way_list = t.data.let_way_list, e.status_list = t.data.status_list) : e.$tools.toast(t.msg);
                        });
                    },
                    
                    select_house: function(t, e, i, s, o) {
                        this.select_index = o, this.select_index2 = s, this.select_index3 = i, this.select_index4 = e, 

                        this.select_item = t;

                        
   
                    },
                    go_url:function(e){
                      var dataset=e.currentTarget.dataset;
                      console.log('dataset',dataset);
                      wx.navigateTo({
                        url: '/pages/house/lethouse/detail?houseId='+dataset.id
                      })
                    },
                    select_house_new: function(e) {
                      var dataset=e.currentTarget.dataset;
                      console.log('dataset',dataset);
                      var list = this.list;
                      this.select_item = list[dataset.index2]['house_list'][dataset.index4];
                      //当前id处理
                      this.id=this.select_item.id;
                      this.status=this.select_item.status;
                      //新增属性处理
                      // this.id=this.
                      // var index = dataset.index2;
                      // var vote_list = this.list;
                      // // console.log('vote_show==', vote_list[index].vote_show);
                      // console.log(vote_list);
                      // console.log('index的值',index);
                      // for(var i=0;i<vote_list.length;i++){
                      //   console.log('i的值',i);
                      //     if(i==index){
                      //       vote_list[index].show_house = 1;
                      //     }else{
                      //       vote_list[i].show_house = 0;
                      //     }
                      // }
                      // this.list=vote_list;
                      // if (vote_list[index].show_house == 0) {
                      //   vote_list[index].show_house = 1;
                      // } else {
                      //   vote_list[index].show_house = 0;
                      // }
                      // this.select_item= vote_list;



                  },
                    search: function() {
                        this.getHouses();
                    },
                    selectTab: function(t) {
                        this.selectshow = !0, this.itemIndex = t;
                    },
                    chooseLetWay: function(t) {
                        t.id == this.pa2.let_way ? (this.pa2.let_way = 0, this.pa2.head_title_2 = "") : (this.pa2.let_way = t.id, 
                        this.pa2.head_title_2 = t.name);
                    },
                    chooseCommunity: function(t) {
                        var e = this.pa2.community_ids.indexOf(t);
                        -1 < e ? this.pa2.community_ids.splice(e, 1) : this.pa2.community_ids.push(t), 1 < this.pa2.community_ids.length ? this.pa2.head_title_3 = "多选" : 1 == this.pa2.community_ids.length ? this.pa2.head_title_3 = "单选" : this.pa2.head_title_3 = "";
                    },
                    chooseType: function(t) {
                        var e = this.type_list[t];
                        this.pa2.type = e.type, this.pa2.head_title_1 = 0 < t ? e.name : "";
                    },
                    chooseStatus: function(t) {
                        t == this.status ? this.pa2.status = 0 : this.pa2.status = t;
                    },
                    selectClose: function() {
                        this.pa2 = JSON.parse(JSON.stringify(this.pa)), this.selectshow = !1;
                    },
                    selectClear: function() {
                        this.pa2 = {
                            head_title_1: "",
                            head_title_2: "",
                            head_title_3: "",
                            head_title_4: "",
                            community_ids: [],
                            let_way: 0,
                            status: 0
                        }, this.pa = JSON.parse(JSON.stringify(this.pa2)), this.selectshow = !1, this.page = 1, 
                        this.getHouses();
                    },
                    selectConfirm: function() {
                        this.selectshow = !1, this.pa = JSON.parse(JSON.stringify(this.pa2)), this.page = 1, 
                        this.getHouses();
                    },
                    navtoEdit: function(t) {
                        this.$Router.push({
                            path: "/pages/work/house/edit-2",
                            query: {
                                id: t.id
                            }
                        });
                    },
                    navto_cope: function(e) {
                        // this.$Router.push({
                        //     path: "/pages/work/house/edit",
                        //     query: {
                        //         id: t.id
                        //     }
                        // });
                        var i = this;
                        o.showModal({
                          title: "提示",
                          content: "确定复制该房吗？",
                          success: function(t) {
                              t.confirm ? i.$api("lethouse.copy", {
                                  house_id: e.id
                              }, "get").then(function(t) {
                                  0 === t.errno ? (i.$tools.toast("复制该房源成功"), i.init()) : i.$tools.toast(t.msg);
                              }) : t.cancel && console.log("用户点击取消");
                          }
                      });


                    },
                    navtoCw: function(t) {
                        this.$Router.push({
                            path: "/pages/work/house/budget",
                            query: {
                                house_id: t.id
                            }
                        });
                    },
                    navto_contract: function(i) {
                        var s = this;
                        o.showLoading({
                            title: "加载中",
                            mask: !0
                        }), s.$api("work.get_house_contract", {
                            house_id: i.id
                        }).then(function(t) {
                            var e;
                            o.hideLoading(), 0 == t.errno ? t.data.contract ? (e = t.data.contract, s.$Router.push({
                                path: "/pages/work/contract/detail",
                                query: {
                                    contract_id: e.id
                                }
                            })) : o.showActionSheet({
                                itemList: [ "在线合同", "手工合同" ],
                                success: function(t) {
                                    0 == t.tapIndex ? s.$Router.push({
                                        path: "/pages/work/contract/add3",
                                        query: {
                                            house_id: i.id
                                        }
                                    }) : 1 == t.tapIndex && s.$Router.push({
                                        path: "/pages/work/contract2/add2",
                                        query: {
                                            house_id: i.id
                                        }
                                    });
                                },
                                fail: function(t) {
                                    console.log(t.errMsg);
                                }
                            }) : s.$tools.toast(t.msg);
                        });
                    },
                    house_operate: function(ef) {
                      console.log('e的值',ef); 
                      this.select_house_new(ef);
                        var e=this;
                        // var i = this, t = [ "查看房源", "编辑房源", "置顶", "下架", "删除" ];
                        var i = this, t = [ "查看房源", "编辑房源", "下架","复制房间", "删除" ],info='my.house_down';
                        2 == e.status && (t = [ "查看房源", "编辑房源", "上架", "复制房间","删除" ],info='my.house_up'), o.showActionSheet({
                            itemList: t,
                            success: function(t) {
                                console.log('t的值',t);
                                console.log('e的值',e);
                                0 == t.tapIndex ? i.$Router.push({
                                    path: "/pages/house/lethouse/detail",
                                    query: {
                                        houseId: e.id
                                    }
                                }) : 1 == t.tapIndex ? i.$Router.push({
                                    // path: "/pages/work/house/edit-2",
                                    path: "/pages/work/house/edit",
                                    query: {
                                        id: e.id
                                    }
                                }) : 2222 == t.tapIndex ? i.$Router.push({
                                    path: "/pages/work/top/menu-list",
                                    query: {
                                        house_id: e.id
                                    }
                                }) : 2 == t.tapIndex ? i.$api(info, {
                                    house_id: e.id
                                }, "post").then(function(t) {
                                    0 === t.errno ? (i.$tools.toast("操作成功"), i.getHouses()) : i.$tools.toast(t.msg);
                                }) :
                                3==t.tapIndex?o.showModal({
                                  title: "提示",
                                  content: "确定复制该房吗？",
                                  success: function(t) {
                                      t.confirm ? i.$api("lethouse.copy", {
                                          house_id: e.id
                                      }, "get").then(function(t) {
                                          0 === t.errno ? (i.$tools.toast("复制该房源成功"), i.init()) : i.$tools.toast(t.msg);
                                      }) : t.cancel && console.log("用户点击取消");
                                  }
                              }):
                              4 == t.tapIndex && o.showModal({
                                    title: "提示",
                                    content: "确定删除吗？",
                                    success: function(t) {
                                        t.confirm ? i.$api("work.house_delete", {
                                            house_id: e.id
                                        }, "post").then(function(t) {
                                            0 === t.errno ? (i.$tools.toast("删除成功"), i.init()) : i.$tools.toast(t.msg);
                                        }) : t.cancel && console.log("用户点击取消");
                                    }
                                });
                            },
                            fail: function(t) {
                                console.log(t.errMsg);
                            }
                        });
                    },
                    // navto_pub: function() {
                    //     this.$Router.push({
                    //         path: "/pages/work/house/edit",
                    //         query: {}
                    //     });
                    // },
                    daochu_data: function(e) {
                        // query: {
                        //     uid: e.uid
                        // }
                        var uid=this.loginUser.id;
                        console.info(this.uid), wx.downloadFile({
                            url: "https://www.jimuzufang.cn/new/index.php?uid="+uid,
                            success: function(e) {
                                e = e.tempFilePath;
                                wx.openDocument({
                                    filePath: e,
                                    fileType: "xls",
                                    showMenu: !0,
                                    success: function(e) {
                                        console.log("打开成功");
                                    },
                                    fail: function(e) {
                                        console.log(e);
                                    }
                                });
                            },
                            fail: function(e) {
                                console.log(e);
                            }
                        });
                    },

                    navto_contract: function(i) {
                        var s = this;
                        s.$api("work.get_house_contract", {
                            house_id: i.id
                        }).then(function(t) {
                            var e;
                            0 == t.errno ? t.data.contract ? (e = t.data.contract, s.$Router.push({
                                path: "/pages/work/contract/detail",
                                query: {
                                    contract_id: e.id
                                }
                            })) : o.showActionSheet({
                                // itemList: [ "在线合同", "手工合同(免线上签约)" ],
                                itemList: ["手工合同(免线上签约)" ],
                                success: function(t) {
                                    1 == t.tapIndex ? s.$Router.push({
                                        path: "/pages/work/contract/add3",
                                        query: {
                                            house_id: i.id
                                        }
                                    }) : 0 == t.tapIndex && s.$Router.push({
                                        path: "/pages/work/contract/add2",
                                        query: {
                                            house_id: i.id
                                        }
                                    });
                                },
                                fail: function(t) {
                                    console.log(t.errMsg);
                                }
                            }) : s.$tools.toast(t.msg);
                        });
                    },
                    navtoDetail: function(t) {
                        1 != t.check_status ? this.$Router.push({
                            path: "/pages/house/lethouse/detail",
                            query: {
                                houseId: t.id
                            }
                        }) : o.showModal({
                            title: "提示",
                            content: "正在审核中",
                            showCancel: !1,
                            success: function(t) {}
                        });
                    },
                    navtoLog: function(t) {
                        this.$Router.push({
                            path: "/pages/work/house/log-list",
                            query: {
                                house_id: t.id
                            }
                        });
                    }
                }
            };
            i.default = t;
        }).call(this, s("543d").default);
    },
    ee92: function(t, e, i) {}
}, [ [ "0627", "common/runtime", "common/vendor" ] ] ]);